package org.makcro.sms.services.chat.base.dao;

import java.util.List;

import org.makcro.sms.services.chat.model.BulkMessage;

public interface BulkMessageDao extends BasicDao<BulkMessage> {

	/**
	 * Finds bulk message by it's core id
	 * 
	 * @param coreId
	 *            core id to search for
	 * @return instance of bulk message if found by core id, null otherwise
	 */
	public BulkMessage findByCoreId(Long coreId);

	/**
	 * Finds all bulk messages in specific range
	 * @param limits integer array representing load limits
	 * @return list of bulk messages
	 */
	public List<BulkMessage> findAll(int[] limits);
	
	/**
	 * Finds all messages count
	 * @return number of bulk messages in data base
	 */
	public Long findAllCount();
}
